package com.aivin.lib_base.bean;

public class CacheSaveBean<T> {
    private int validTime;
    private T value;
    private long saveTime;

    public CacheSaveBean() {

    }

    /**
     * @param validTime 有效时长
     * @param value     值
     * @param saveTime  什么时候保存的
     */
    public CacheSaveBean(int validTime, T value, long saveTime) {
        this.validTime = validTime;
        this.value = value;
        this.saveTime = saveTime;
    }


    public int getValidTime() {
        return validTime;
    }

    public void setValidTime(int validTime) {
        this.validTime = validTime;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public long getSaveTime() {
        return saveTime;
    }

    public void setSaveTime(long saveTime) {
        this.saveTime = saveTime;
    }

}